package cn.nucun.actions;

import cn.nucun.wrapper.LoginInDialog;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;

import java.util.Objects;

/**
 * login窗体
 *
 * @author chen
 */
public class LoginAction extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        LoginInDialog loginInDialog = new LoginInDialog(Objects.requireNonNull(e.getProject()));
        //是否允许用户通过拖拽的方式扩大或缩小你的表单框
        loginInDialog.setResizable(true);
        loginInDialog.show();
    }
}
